package com.cskaoyan.service.goods;

import com.cskaoyan.model.bo.PageBo;
import com.cskaoyan.model.bo.goods.categorybrand.CategoryAndBrandRoot;
import com.cskaoyan.model.bo.goods.create.GoodsCreateRootBO;
import com.cskaoyan.model.bo.goods.delete.GoodsDeleteBO;
import com.cskaoyan.model.bo.goods.list.GoodsListPageBo;
import com.cskaoyan.model.bo.goods.update.GoodsUpdateRoot;
import com.cskaoyan.model.vo.goods.GoodsBaseData;
import com.cskaoyan.model.vo.goods.detail.GoodsDetailData;

public interface GoodsService {
    //商品模块查询所有商品讯息分页显示
    GoodsBaseData allGoodsList(GoodsListPageBo goodsListPageBo);

    //商品模块 新增商品时回显功能
    CategoryAndBrandRoot catAndBrand();

    //商品模块新增商品 商品信息提交存储数据库
    int createNewGood(GoodsCreateRootBO goodsCreateRootBO);


    int deleteGood(GoodsDeleteBO goodsDeleteBO);

    GoodsDetailData getGoodDetail(Integer id);

    int updateGood(GoodsUpdateRoot goodsUpdateRoot);
}
